package com.newdream.ribbondemo.Service;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @ author: sanglei
 * @ date: 2019-04-30 10:10
 * @ description:
 */
@Service
public class GenericRest {
    @Bean
    @LoadBalanced
    public RestTemplate template(){
        return new RestTemplate();
    }
}
